package com.langfeiyes.pattern.composite;

import org.w3c.dom.Document;

public class App {

    public static void main(String[] args) {
        Component leaf1 = new Leaf();
        Component leaf2 = new Leaf();

        Component composite = new Composite();
        composite.addChild(leaf1);
        composite.addChild(leaf2);

        composite.operation();

    }
}
